QuickOPC User's Guide and Reference
GetDiscreteItemNode<TValue,TAttribute>(UAModelClient,UAEndpointDescriptor,UANodeDescriptor) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess.Extensions Namespace > UAModelClientExtension Class > GetDiscreteItemNode Method : GetDiscreteItemNode<TValue,TAttribute>(UAModelClient,UAEndpointDescriptor,UANodeDescriptor) Method
The type of the value of the node.
The type used to access the Value attribute.
The OPC-UA model client.
Endpoint descriptor. Identifies the OPC-UA server.
Node descriptor. Identifies the node in OPC server's address space.
Syntax
'Declaration
 
<ExtensionAttribute()>
<NotNullAttribute()>
Public Overloads Shared Function GetDiscreteItemNode
    (Of TValue,TAttribute)( _
   ByVal modelClient As UAModelClient, _
   ByVal endpointDescriptor As UAEndpointDescriptor, _
   ByVal nodeDescriptor As UANodeDescriptor _
) As UADiscreteItemNode(Of TValue,TAttribute)
'Usage
 
Dim modelClient As UAModelClient
Dim endpointDescriptor As UAEndpointDescriptor
Dim nodeDescriptor As UANodeDescriptor
Dim value As UADiscreteItemNode(Of TValue,TAttribute)
 
value = UAModelClientExtension.GetDiscreteItemNode(Of TValue, TAttribute)(modelClient, endpointDescriptor, nodeDescriptor)

Parameters

modelClient
The OPC-UA model client.
endpointDescriptor
Endpoint descriptor. Identifies the OPC-UA server.
nodeDescriptor
Node descriptor. Identifies the node in OPC server's address space.

Type Parameters

TValue
The type of the value of the node.
TAttribute
The type used to access the Value attribute.

Return Value

Returns the discrete item node obtained from the model client.
Requirements

Target Platforms: Windows 7 with SP1, Windows Server 2008 R2 with SP1

See Also

Reference

UAModelClientExtension Class
UAModelClientExtension Members
Overload List